<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BOM : window</title>

    <script>
        function myOpen(){
            let specifics = 'width=500,height=300,location=0' ;
            // window.open( URL , name , specifics , replace );
            open( 'dialog.html' , 'newDialog' , specifics ) ; 
        }
    </script>

</head>
<body>

    <button type="button" onclick="myOpen()" >打开一个新的窗口</button>
    


</body>
</html>